import { ipcMain } from "electron";
import {
  downloadRenderdoc,
  renderdocExist,
  startRenderdoc,
  vcruntimeExist,
} from "../services/renderdoc";

export const startRenderdocIpc = (win) => {
  ipcMain.handle("startRenderdoc", () => {
    return startRenderdoc();
  });

  ipcMain.handle("downloadRenderdoc", () => {
    return downloadRenderdoc(win);
  });

  ipcMain.handle("renderdocExist", () => {
    return renderdocExist();
  });

  ipcMain.handle("vcruntimeExist", () => {
    return vcruntimeExist();
  });
};
